import {SearchVO, UnitPrice} from "@/typings";
import requestWithToken from "@/utils/request";

export const saveUnit = (data: UnitPrice) => {
    return requestWithToken("/unit-price/save", "POST", data);
};
export const listUnit = (data: SearchVO) => {
    return requestWithToken("/unit-price/list", "GET", data);
};
export const deleteUnit = (id: string) => {
    return requestWithToken("/unit-price/delete", "GET", {id});
};
export const getUnit = (id: string) => {
    return requestWithToken("/unit-price/get", 'GET', {id})
}